dsh-sensitive-replace: Replace sensitive characters based on a masking table before outbound transmission to bypass DeepSeek official API 400 errors

dsh-sensitive-replace (Short-Arm-Ape, v0.7.0) is a DSH model inference plugin. Based on a user-maintained sensitive-blocklist.yaml, it replaces sensitive characters at three stages: agent/pre-step, tools/post-execute, and llm/stream, to bypass the official DeepSeek "Content Exists Risk 400" error. It supports hot-reloading of the blocklist, full request scrubbing before network transmission, hard cleaning upon 400 errors, and retries within the same session. Installation: `dsh plugin --profile web add dsh-sensitive-replace`. The replacement is one-way and irreversible; please review the source code and permissions before deployment.

Read More